package redis.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import redis.pojo.Result;
import redis.service.EmpService;

import java.util.List;

@RestController
@RequestMapping("/emp")
public class EmpController {


    @Autowired
    private EmpService empService;


    @DeleteMapping("/{ids}")
    public Result delete(@PathVariable List<Integer> ids){
         empService.delete(ids);
         return Result.success();
    }
}
